package com.smalljj.dao.impl;

import com.smalljj.bean.User;
import com.smalljj.dao.UserDao;

public class UserDaoImpl extends MiddleAbstractDao<User> implements UserDao {
	
	@Override
	protected Class<User> getEntityClass() {
		return User.class;
	}
	
	@Override
	public User findUserByName(String userName)throws Exception {
		return super.findBySqlToBean("select * from user where username='"+userName+"'");
	}
	
}
